<?php

namespace App\Enums;

use App\Traits\EnumTrait;

/**
 * @method static self OPEN
 * @method static self CLOSE
 */
class GoodsOpenSaleEnum extends \PhpEnum\PhpEnum
{
    use EnumTrait;

    const OPEN = [1, "开启"];
    const CLOSE = [2, "不开启"];

    protected function construct($key, $name)
    {
        $this->key = $key;
        $this->name = $name;
    }
}
